package ssm.pojo;

import javax.validation.constraints.Size;

public class Per {
    private Integer perId;

    private Integer id;

    private String resource;
    @Size(max = 10,min=0,message = "{type.length.error}")
    private String sourcetype;

    private String sourcead;

    private String sourcenote;

    private Boolean viewable;

    public Integer getPerId() {
        return perId;
    }

    public void setPerId(Integer perId) {
        this.perId = perId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getResource() {
        return resource;
    }

    public void setResource(String resource) {
        this.resource = resource == null ? null : resource.trim();
    }

    public String getSourcetype() {
        return sourcetype;
    }

    public void setSourcetype(String sourcetype) {
        this.sourcetype = sourcetype == null ? null : sourcetype.trim();
    }

    public String getSourcead() {
        return sourcead;
    }

    public void setSourcead(String sourcead) {
        this.sourcead = sourcead == null ? null : sourcead.trim();
    }

    public String getSourcenote() {
        return sourcenote;
    }

    public void setSourcenote(String sourcenote) {
        this.sourcenote = sourcenote == null ? null : sourcenote.trim();
    }

    public Boolean getViewable() {
        return viewable;
    }

    public void setViewable(Boolean viewable) {
        this.viewable = viewable;
    }
}